import { detailDataApi } from '@/api/goods'
import { goodList } from '@/api/category'
let actions = {
  async actChangeDetailData(context, data) {
    let result = await detailDataApi(data)
    if (result.data.status == 'success') {
      context.commit('changeDetailData', result.data.data)
      context.commit('changeLoading', false)
    }
  },
  async goodsList(context, data) {
    let result = await goodList(data)
    if (result.data.status == 'success') {
      context.commit('goodsList', result.data.data)
    }
  }
}
export default actions